-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Kuwait Theme: Radio group styling #2737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, nice to have the differences scoped entirely to the CSS styles.
See my inline comments: I think the flex
/grid
should be set through the variant
rather than style
param. But if there's not time to fix before a release is needed, I'm happy to merge as-is
...app/shared/components/template/components/radio-button-grid/radio-button-grid.component.html
Outdated
Show resolved
Hide resolved
src/app/shared/components/template/components/radio-button-grid/radio-button-grid.component.ts
Outdated
Show resolved
Hide resolved
…pp-builder into bug-kw-radio-group-styling
Changes made @jfmcquade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the updates. I've added some minor comments inline, but I've also noticed an issue with the comp_radio_button_grid demo template: the text of the second button, which wraps over three lines, is obscured by the image:

...app/shared/components/template/components/radio-button-grid/radio-button-grid.component.scss
Outdated
Show resolved
Hide resolved
...app/shared/components/template/components/radio-button-grid/radio-button-grid.component.scss
Outdated
Show resolved
Hide resolved
...app/shared/components/template/components/radio-button-grid/radio-button-grid.component.scss
Outdated
Show resolved
Hide resolved
...app/shared/components/template/components/radio-button-grid/radio-button-grid.component.scss
Outdated
Show resolved
Hide resolved
I'll review this when code review has passed, @FaithDaka could you check me again when @jfmcquade has approved? |
@esmeetewinkel I've updated the PR and description following our conversation, should now be ready for testing |
Visit the preview URL for this PR (updated for commit 4a63a85): https://plh-teens-app1--pr2737-bug-kw-radio-group-s-4s48mh5m.web.app (expires Wed, 05 Mar 2025 15:43:43 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: e4c0bab6b08dd290fbf002fd6e07987fa4b5fce1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
- When only images or only text are provided, the button height should adapt to the content.
- I had understood
item-width
is a min width, but it seems to behave more like a max width in the flex case (or at least setting is causes narrower buttons).
Screenshot in debug
deployment:
Screenshots in plh_kids_kw
deployment:
(without specifying item_width
)
Good point, fixed with 0901aa2
Ah, this is because the default min-width, used if none was specified, was set larger than 96px. I've updated now so that it should behave as expected. 0901aa2 also includes changes to make the items more likely to wrap onto a single line, as they were taking up a lot of space. Part of this is reducing the image size (to the app-wide maximum heigh for icons). Let me know if this looks right or if the image size should be tweaked ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
19/02/25 UPDATED by @jfmcquade:
PR Checklist
Description
Adds additional parameter options for the
radio_button_grid
component:flex
item_width
(taken to be minimum item width) andgrid_gap
are still applied for this variantsecondary
As these are independent of each other, they can be set in any combination. E.g. an instance of the component with the default variant (grid) can have
style: secondary
applied.At the bottom of the demo sheet is an example of the configuration to achieve the requested use case in #2641.
Git Issues
Closes #2641
Screenshots
comp_radio_button_grid
Demo by theme: